//
//  SKUCollectionCell.m
//  ExhibitionHall
//
//  Created by 王洋 on 2019/6/19.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "SKUCollectionCell.h"

@implementation SKUCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];


}

- (void)fillCellWithMode:(ProductSKUModel *)model {
    self.skuLab.text = model.name;
    self.layer.cornerRadius = 15.0f;
    self.layer.borderWidth = 1.0f;

    if (model.isSelect) {
        self.backgroundColor = UIColorHex(0x3c7ef4);
        self.layer.borderColor = UIColorHex(0xf1f1f1).CGColor;
        self.skuLab.textColor = UIColorHex(0xFFFFFF);
        
    } else {
        self.backgroundColor = UIColorHex(0xf1f1f1);
        self.layer.borderColor = UIColorHex(0x95c7f7).CGColor;
        self.skuLab.textColor = UIColorHex(0x4B4A4C);
    }
}

@end
